﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using UniversityStudentManagemnetSystem.BLL;
using UniversityStudentManagemnetSystem.DAO.DAL;

namespace UniversityStudentManagemnetSystem.UI
{
    public partial class VCInformationView : System.Web.UI.Page
    {

        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                PopulatedTextBoxes();
            }
        }

        private void PopulatedTextBoxes()
        {
            VCManager manager = new VCManager();
            Vc aVc= manager.GetVCInformation();
            nameTextBox.Text = aVc.Name;
            designationTextBox.Text = aVc.Designation;
            presentAddressTextBox.Text = aVc.PresentAddress;
            permanentTextBox.Text = aVc.Permanentaddress;
            contactNoTextBox.Text = aVc.ContactNo;
            emailTextBox.Text = aVc.Email;

        }

        protected void vcInformationGridView_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}